#include <stdio.h>
void print3()
{
    printf("hello printf3\n");
}
void print2()
{
    printf("hello printf2\n");
    print3();
}
void print1()
{
    printf("hello printf1\n");
    print2();
}
int AddToTop(int top)
{
    int i = 1;
    int res = 0;
    for(; i <= top; i++)
    {
        res += i;
    }
    print1();
    return res;
}
int main()
{
    printf("debug begin\n");

    int Top = 100;
    int sum = AddToTop(Top);

    printf("%d\n",sum);
    
    printf("debug end\n");
    return 0;
}
